package com.carkeeper.billpay;

import com.carkeeper.billpay.utils.TokenDecode;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@EnableEurekaClient
@MapperScan(basePackages = "com.carkeeper.billpay.dao")
@EnableSwagger2
@EnableFeignClients(basePackages = "com.carkeeper.storebill.feign")
public class StoreBillPayApplication {

    public static void main(String[] args) {
        SpringApplication.run(StoreBillPayApplication.class);
    }

    @Bean
    public TokenDecode geteTokenDecode(){

        return new TokenDecode();
    }
}
